home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / ddx / Xsun / RCS / sunUtils.c,v < prev    next >
Encoding:
Text File  |  1990-03-04  |  2.3 KB  |  98 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     90.02.16.17.43.09;  author tve;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     90.02.16.17.40.21;  author tve;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @Original X11R4 distribution
  22. @
  23.  
  24.  
  25. 1.2
  26. log
  27. @added rcsid
  28. @
  29. text
  30. @/************************************************************
  31. Copyright 1987 by Sun Microsystems, Inc. Mountain View, CA.
  32.  
  33.                     All Rights Reserved
  34.  
  35. Permission  to  use,  copy,  modify,  and  distribute   this
  36. software  and  its documentation for any purpose and without
  37. fee is hereby granted, provided that the above copyright no-
  38. tice  appear  in all copies and that both that copyright no-
  39. tice and this permission notice appear in  supporting  docu-
  40. mentation,  and  that the names of Sun or MIT not be used in
  41. advertising or publicity pertaining to distribution  of  the
  42. software  without specific prior written permission. Sun and
  43. M.I.T. make no representations about the suitability of this
  44. software for any purpose. It is provided "as is" without any
  45. express or implied warranty.
  46.  
  47. SUN DISCLAIMS ALL WARRANTIES WITH REGARD TO  THIS  SOFTWARE,
  48. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT-
  49. NESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE  LI-
  50. ABLE  FOR  ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  51. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,  DATA  OR
  52. PROFITS,  WHETHER  IN  AN  ACTION OF CONTRACT, NEGLIGENCE OR
  53. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
  54. THE USE OR PERFORMANCE OF THIS SOFTWARE.
  55.  
  56. ********************************************************/
  57.  
  58. #ifndef    lint
  59. static char sccsid[] = "%W %G Copyright 1987 Sun Micro";
  60. static char rcsid[] = "$Header$";
  61. #endif
  62.  
  63. #include "sun.h"
  64.  
  65. /*
  66.  * Generates & caches a static value that determines whether we are running 
  67.  * in coexistence with the sunwindows, e.g. under overview.
  68.  */
  69.  
  70. Bool
  71. sunUseSunWindows()
  72. {
  73. #ifdef SUN_WINDOWS
  74.     static Bool sunUseSunWindowsFirstTime = TRUE;
  75.     static Bool useSunWindows;
  76.  
  77.     if ( sunUseSunWindowsFirstTime ) {
  78.     sunUseSunWindowsFirstTime = FALSE;
  79.     useSunWindows = ( getenv("WINDOW_PARENT") != NULL );
  80.     }
  81.     return( useSunWindows );
  82. #else
  83.     return( FALSE );
  84. #endif SUN_WINDOWS
  85. }
  86.  
  87.  
  88. @
  89.  
  90.  
  91. 1.1
  92. log
  93. @Initial revision
  94. @
  95. text
  96. @d31 1
  97. @
  98.